const express = require('express');
const router = express.Router();
const likeController = require('../controllers/likeController');
const { authenticate } = require('../middleware/auth');

router.post('/', authenticate, likeController.likeReview);
router.delete('/:review_id', authenticate, likeController.unlikeReview);
router.get('/check/:review_id', authenticate, likeController.checkLike);

module.exports = router;